﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter
{
    public class LoginPresenter : Presenter<ILoginView>
    {
        public LoginPresenter(ILoginView view)
            : base(view)
        {
        }

        public void Login()
        {
            string userName = View.UserName;
            string password = View.Password;
            string restaurantId = View.RestaurantId;

            Model.Login(userName, password, restaurantId);
        }
    }
}
